<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/vue.min-2.6.11.js"></script>
    <style>
        .intext {
            height: 50px;
            line-height: 50px;
        }
    </style>
</head>

<body>
    <div id="app">
        <input type="text" v-model="inText">
        <input type="button" value="添加" @click="addClick">
        <div v-for="item in list" class="intext" :key="item">
            <input type="checkbox">
            <span>{{item}}</span>
        </div>
    </div>
    <script>
        const vm = new Vue({
            el: '#app',
            data: {
                inText: '',
                list: ['zs', 'ls', 'ww']
            },
            methods: {
                addClick() {
                    this.list.unshift(this.inText)
                }
            }
        })
    </script>
</body>

</html>